home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Memory problems
- Date: 15 Apr 1996 08:43:01 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4ktqq5INN6k@keats.ugrad.cs.ubc.ca>
- References: <4kt3rc$2nn@nntp.dlsu.edu.ph>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4kt3rc$2nn@nntp.dlsu.edu.ph>,
- humprey c. sy <humprey@ccslinux.dlsu.edu.ph> wrote:
- >Kindly instruct me on what to do with this problem: We have this
- >large project in our class which involves programming in C. Our problem
- >here is we can't integrate our individual codes together, because the
- >program somehow gets so large that it would usually hang. Individually,
- >each of these code segments are running perfectly well. I believe this
- >is a memory problem, isn't it? Any help would be greatly appreciated.
- >Thank you very much!
-
- The answer is not necessarily ``you are running out of stack'' as the other
- poster implies, but ``you need to adapt sound software engineering practices''.
-
- Without these practices it is difficult to carry on a team project, as you are
- discovering.
-
- How do you know that the individual components run perfectly well? What sorts
- of individual tests are you subjecting the various components to?
-
- A runaway pointer in one module can easily bugger up others. One module can
- use another in a way that is not covered by an individual test case, and
- trigger a flaw. There may be a memory leak somewhere which will cause the
- program to use more and more memory. A simple test strategy may not uncover
- this readily: leaks and pointer problems occur even in production systems
- produced by experienced programmers.
-
- Or you _could_ simply be running out of memory. (Assuming you are working in a
- 16-bit environment) your program could simply be requiring resources that such
- a computing environment is not sufficient to give. To solve this, you either
- move to a more powerful operating system (or at least a DOS extender), or you
- rethink some of the data representations in the program that are wasting
- space.
- --
- I'm not really a jerk, but I play one on Usenet.
-